package com.njtoyo.taxi.admin.mapper.master.mapper.local_service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.local_service.LifeMerchantAddressMapping;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 商户地址关联表 Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2022-03-01
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface LifeMerchantAddressMappingMapper extends BaseMapper<LifeMerchantAddressMapping> {
    /**
     * 获取商家地址
     */
    LifeMerchantAddressMapping getAddressId(Long merchant_id);

    /**
     * 删除所有的商家自提点地址
     */
    Integer deleteAddressId(Long merchant_id);


}
